tools/hotplug: Use ip on systems where brctl is not available
authorSteven Haigh <netwiz@crc.id.au>
Wed, 18 Dec 2019 01:15:23 +0000 (12:15 +1100)
committerWei Liu <wl@xen.org>
Wed, 18 Dec 2019 11:54:33 +0000 (11:54 +0000)
commit0e7c69bd3c0b35a677d73843b39522787ccf5a3f
tree146ec3f977400169e0b8fa099aa5acddb0c6b9c7
parent7a011e2b8bc87a928c1060ccff22dcad126d09a6
tools/hotplug: Use ip on systems where brctl is not available

Newer distros like CentOS 8 do not have brctl available. As such, we
can't use it to configure networking anymore.

This patch will fall back to 'ip' or 'bridge' commands if brctl is not
available in the working PATH.

This would be a likely backport candidate to any version expected to be
built on CentOS 8 etc.

Signed-off-by: Steven Haigh <netwiz@crc.id.au>
Acked-by: Wei Liu <wl@xen.org>
tools/hotplug/Linux/colo-proxy-setup
tools/hotplug/Linux/vif-bridge
tools/hotplug/Linux/vif2
tools/hotplug/Linux/xen-network-common.sh